import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//1.引入reset.css——重置样式
import './assets/css/reset.css';
//3.引入图标库文件
import './assets/css/iconfont.css';

//4.引入swiper组件样式
//决定分页器和左右按钮的翻页样式
import 'swiper/swiper-bundle.min.css';
//	基础样式
import 'swiper/swiper.min.css';

//5.引入移动设备样式基数配置
import 'lib-flexible/flexible.js';

import axios from 'axios';
import VueAxios from 'vue-axios';


//2.引入fastclick模板
import fastClick from 'fastclick';
//将整个禁止延迟的操作应用到整个body标签内[整个网页]
fastClick.attach( document.body );
//
router.afterEach( (to , from , next)=>{
	// 所有组件跳转之后，滚动调至顶页面
	window.scrollTo(0,0);
})

createApp(App).use(store).use(router).use(VueAxios , axios).mount("#app");
